export const initFunction = () => {
    // 捕获全局错误
    window.addEventListener('unhandledrejection', event => {
        console.warn(`UNHANDLED PROMISE REJECTION: ${event.reason}`)
    })
}